# ilms/lib/utility_functions.rb

class UtilityFunctions < ApplicationController
	def self.current_time
		t = Time.now.utc
		sim = Time.at(0).utc + (t.to_f - Time.utc(t.year, t.month, t.day, t.hour).to_f)*24
        time = [sim.hour,sim.min, sim]
		return time
	end	
	
	def self.current_interval
		# interval is calculated by the inverse of the minut scalor in seconds
		# returns the real number of seconds in a simulated hour
		return 150.0
	end
end
